package cn;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.01.17.21.51
 */
public class Khan {
    public static int space=0;
    public static void main(String[] args) throws FileNotFoundException {
        String path = "D:\\Text.java";
        File f=new File("");
        BufferedReader kh = new BufferedReader(new FileReader(path));
        space+=kh.lines().filter(e->e.trim().length()==0).count();
        System.out.println(space);
    }
}
